import Vue from 'vue'
import App from './App.vue'
import router from './router/index'
import store from './store/index'

import ECharts from 'vue-echarts'
import 'echarts'
import "echarts-gl";
Vue.component('v-chart', ECharts)

import './utils/flexible.js'
import './utils/filter.js'
import './utils/directive.js'

//element组件
import Element from 'element-ui'
// import 'element-ui/lib/theme-chalk/index.css'
import './assets/eletheme/theme/index.css'
import './assets/style/element.scss'
Vue.use(Element)
import './utils/echartsRegisterMap'

//请求封装
import './servers/index'
import './servers/socket'

//路由拦截
import './router/router.interceptor'

import './assets/style/normalize.css'
import './assets/style/publicStyle.scss'
import './assets/iconfont/iconfont.css'
import './assets/style/animate.css'
import './assets/style/global.scss'
import Viewer from 'v-viewer'
import 'viewerjs/dist/viewer.css'
Vue.use(Viewer,{
  defaultOptions:{
    zIndex:2999
  }
})

Vue.config.productionTip = false
export default new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
